home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / makefile.in < prev    next >
Encoding:
Makefile  |  1994-10-19  |  29.8 KB  |  858 lines

  1. # Makefile for the GNU linker ld (version 2)
  2. # Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
  3.  
  4. # This file is part of GNU ld.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18.  
  19. srcdir = .
  20. objdir = .
  21.  
  22. prefix = /usr/local
  23.  
  24. program_transform_name =
  25. exec_prefix = $(prefix)
  26. bindir = $(exec_prefix)/bin
  27. libdir = $(exec_prefix)/lib
  28. tooldir = $(exec_prefix)/$(target_alias)
  29. datadir = $(prefix)/lib
  30. mandir = $(prefix)/man
  31. man1dir = $(mandir)/man1
  32. man2dir = $(mandir)/man2
  33. man3dir = $(mandir)/man3
  34. man4dir = $(mandir)/man4
  35. man5dir = $(mandir)/man5
  36. man6dir = $(mandir)/man6
  37. man7dir = $(mandir)/man7
  38. man8dir = $(mandir)/man8
  39. man9dir = $(mandir)/man9
  40. infodir = $(prefix)/info
  41. includedir = $(prefix)/include
  42. docdir = $(datadir)/doc
  43. # We put the scripts in the directory $(scriptdir)/ldscripts.
  44. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  45. # directives need to be different for native and cross linkers.
  46. scriptdir = $(tooldir)/lib
  47.  
  48. SHELL = /bin/sh
  49.  
  50. INSTALL = `cd $(srcdir); pwd`/../install.sh -c
  51. INSTALL_PROGRAM = $(INSTALL)
  52. INSTALL_DATA = $(INSTALL)
  53. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  54. INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
  55.  
  56. AR = ar
  57. AR_FLAGS = qv
  58. CC = cc
  59. CFLAGS = -g
  60. MAKEINFO = makeinfo
  61. TEXI2DVI = texi2dvi
  62. RANLIB = ranlib
  63. CC_FOR_BUILD=$(CC)
  64. BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
  65. LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ;  else echo flex ; fi`
  66.  
  67. # Seach path to override the default search path for -lfoo libraries.
  68. # If LIB_PATH is empty, the ones in the script (if any) are left alone.
  69. # (The default is usually /lib:usr/lib:/usr/local/lib, unless building
  70. # a cross-linker, in which case the default is empty.  See genscripts.sh.)
  71. # Otherwise, they are replaced with the ones given in LIB_PATH,
  72. # which may have the form: LIB_PATH=/lib:/usr/local/lib
  73. LIB_PATH =
  74.  
  75. # Additional libraries which are used when ld is built native.  This
  76. # is set by some host makefile fragments.
  77. NATIVE_LIB_DIRS =
  78.  
  79. BASEDIR = $(srcdir)/..
  80. BFDDIR = $(BASEDIR)/bfd
  81. INCDIR    = $(BASEDIR)/include
  82. INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
  83. DEP = mkdep
  84.  
  85. # What version of the manual to build
  86. DOCVER = gen
  87.  
  88. # Where to find texinfo.tex to format docn with TeX
  89. TEXIDIR = $(srcdir)/../texinfo
  90.  
  91. # Where to find other docs needed to format with TeX
  92. TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir)
  93.  
  94. # Whether to get roff to put indexing entries on stderr
  95. TEXI2OPT =
  96. # You neeed this to generate ld-index.ms (or .mm or .me)
  97. # TEXI2OPT = -i
  98.  
  99. TEXI2ROFF=texi2roff
  100.  
  101. # Which roff program to use to generate index for texi2roff'd doc
  102. ROFF = groff
  103.  
  104. #stuff for self hosting (can be overridden in config file).
  105. HOSTING_CRT0 = /lib/crt0.o
  106. HOSTING_LIBS = `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi`  -lc
  107. HOSTING_EMU = -m $(EMUL)
  108.  
  109. # These were used by `make check-cdtest'
  110. #
  111. #CXX = `if [ -f ../gcc/xgcc ] ; then \
  112. #            echo ../gcc/xgcc -B../gcc/; \
  113. #        else echo gcc; \
  114. #        fi`
  115. #CXXFLAGS = -fgnu-linker
  116. #
  117. # FIX_ME: using ../gcc/xgcc breaks the cdtest. 
  118. #CXX = g++
  119.  
  120. # Setup the testing framework, if you have one
  121. EXPECT = `if [ -f $$r/../expect/expect ] ; \
  122.     then echo $$r/../expect/expect ; \
  123.     else echo expect ; fi`
  124.  
  125. RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
  126.     then echo $${srcroot}/../dejagnu/runtest ; \
  127.     else echo runtest ; fi`
  128.  
  129. RUNTESTFLAGS =
  130.  
  131. CC_FOR_TARGET = ` \
  132.   if [ -f $$r/../gcc/Makefile ] ; then \
  133.     if [ -f $$r/../newlib/Makefile ] ; then \
  134.       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
  135.     else \
  136.       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
  137.     fi; \
  138.   else \
  139.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  140.       echo $(CC); \
  141.     else \
  142.       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  143.     fi; \
  144.   fi`
  145.  
  146. CXX = gcc
  147. CXX_FOR_TARGET = ` \
  148.   if [ -f $$r/../gcc/Makefile ] ; then \
  149.     if [ -f $$r/../newlib/Makefile ] ; then \
  150.       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
  151.     else \
  152.       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
  153.     fi; \
  154.   else \
  155.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  156.       echo $(CXX); \
  157.     else \
  158.       t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
  159.     fi; \
  160.   fi`
  161.  
  162. # go directly to ld.new in case this ld isn't capable of
  163. # linking native object on this host.  It can be renamed on
  164. # install.
  165. LD_PROG    = ld.new
  166.  
  167. all: $(LD_PROG)
  168. .PHONY: all
  169.  
  170. ### Host, target, and site specific Makefile fragments come in here.
  171. ####
  172.  
  173. LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) 
  174.  
  175. # The .cc suffix was used by `make check-cdtest'.
  176.  
  177. .SUFFIXES: .y $(SUFFIXES) .cc
  178.  
  179. # Suppress smart makes who think they know how to automake Yacc files
  180. .y.c:
  181.  
  182. # This rule was used for the check-cdtest target.
  183. #.cc.o:
  184. #    $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
  185.  
  186. ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
  187. .c.o:
  188.     $(CC) -c $(ALL_CFLAGS) $<
  189.  
  190. # for self hosting
  191. BFDLIB = ../bfd/libbfd.a
  192. LIBIBERTY = ../libiberty/libiberty.a
  193.  
  194. ALL_EMULATIONS = elnk960.o esun3.o ei386aout.o ego32.o evsta.o \
  195.     em88kbcs.o ea29k.o enews.o ehp300bsd.o ehp3hpux.o \
  196.     eh8300.o eh8300h.o eebmon29k.o esun4.o egld960.o \
  197.     em68kcoff.o est2000.o esa29200.o ei386mach.o \
  198.     evanilla.o ei386coff.o ez8ksim.o emipslit.o ei386bsd.o \
  199.     emipsbig.o emipsbsd.o emipsidt.o evax.o eh8500.o \
  200.     eh8500b.o eh8500s.o eh8500c.o eh8500m.o \
  201.     ehppaelf.o emipsidtl.o esh.o eelf_i386.o ealpha.o \
  202.     ei386lynx.o em68klynx.o esparclynx.o ecoff_sparc.o \
  203.     eelf32ppc.o ei386go32.o em68kaout.o ei386linux.o \
  204.     eelf32_sparc.o eelf64_sparc.o eriscix.o eelf32bmip.o eelf32lmip.o
  205.  
  206. CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
  207.     ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
  208.     mri.c
  209.  
  210. HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
  211.     ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
  212.     ldwrite.h mri.h
  213.  
  214. GENERATED_CFILES = ldgram.c ldlex.c
  215. GENERATED_HFILES = ldgram.h ldemul-list.h
  216.  
  217. OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
  218.     ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o \
  219.     ldfile.o ${EMULATION_OFILES}
  220.  
  221. LINTSOURCES = $(CFILES) $(GENERATED_CFILES) e*.c
  222.  
  223. STAGESTUFF = *.o ldscripts/* e*.c
  224.  
  225. info: ld.info
  226. .PHONY: info
  227.  
  228. ldgram.c: ldgram.y
  229.     $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
  230.     mv -f y.tab.c ldgram.c
  231.     mv -f y.tab.h ldgram.h
  232.  
  233. # Separate from ldgram.c so that a parallel make doesn't try to build
  234. # both ldgram.c and ldgram.h simultaneously.
  235. ldgram.h: ldgram.c
  236.  
  237. # EMUL is the name of a file in the emulparams subdir, without the .sh.
  238. ldmain.o: ldmain.c config.status
  239.     if [ -z "$(EMUL)" ] ; then \
  240.       echo "you must set a default emulation" 1>&2 ; \
  241.       exit 1 ; \
  242.     else \
  243.       $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $< ; \
  244.     fi
  245.  
  246. ldemul-list.h: Makefile
  247.     (echo "/* This file is automatically generated.  DO NOT EDIT! */";\
  248.     for f in `echo " " ${EMULATION_OFILES} "" \
  249.      | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
  250.         echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
  251.     done;\
  252.     echo "";\
  253.     echo "#define EMULATION_LIST \\";\
  254.     for f in `echo " " ${EMULATION_OFILES} "" \
  255.      | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
  256.         echo "  &ld_$${f}_emulation, \\"; \
  257.     done;\
  258.     echo "  0") >ldemul-tmp.h
  259.     mv ldemul-tmp.h ldemul-list.h
  260.  
  261. ldlex.c: ldlex.l
  262.     $(LEX) -I -Cem $(srcdir)/ldlex.l
  263.     -sed -e '/^int.*free();/d' \
  264.          -e '/^char.*malloc();/d' \
  265.          -e 's/malloc/xmalloc/g' \
  266.       < lex.yy.c > ldlex.c.new
  267.     -rm lex.yy.c
  268.     mv ldlex.c.new ./ldlex.c
  269.  
  270. # These all start with e so 'make clean' can find them.
  271.  
  272. GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
  273. GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
  274.  
  275. esun4.c: $(srcdir)/emulparams/sun4.sh \
  276.   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  277.     ${GENSCRIPTS} sun4
  278. esun3.c: $(srcdir)/emulparams/sun3.sh \
  279.   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  280.     ${GENSCRIPTS} sun3
  281. evsta.c: $(srcdir)/emulparams/vsta.sh \
  282.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  283.     ${GENSCRIPTS} vsta
  284. ego32.c: $(srcdir)/emulparams/go32.sh \
  285.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  286.     ${GENSCRIPTS} go32
  287. enews.c: $(srcdir)/emulparams/news.sh \
  288.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  289.     ${GENSCRIPTS} news
  290. evax.c: $(srcdir)/emulparams/vax.sh \
  291.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  292.     ${GENSCRIPTS} vax
  293. ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
  294.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  295.     ${GENSCRIPTS} hp300bsd
  296. ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
  297.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  298.     ${GENSCRIPTS} hp3hpux
  299. ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
  300.   $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
  301.     ${GENSCRIPTS} hppaelf
  302. ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
  303.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  304.     ${GENSCRIPTS} i386aout
  305. ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
  306.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
  307.     ${GENSCRIPTS} i386go32
  308. ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
  309.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  310.     ${GENSCRIPTS} i386mach
  311. eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
  312.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
  313.     ${GENSCRIPTS} ebmon29k
  314. esa29200.c: $(srcdir)/emulparams/sa29200.sh \
  315.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
  316.     ${GENSCRIPTS} sa29200
  317. ea29k.c: $(srcdir)/emulparams/a29k.sh \
  318.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
  319.     ${GENSCRIPTS} a29k
  320. em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
  321.   $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
  322.     ${GENSCRIPTS} m88kbcs
  323. eh8300.c: $(srcdir)/emulparams/h8300.sh \
  324.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
  325.     ${GENSCRIPTS} h8300
  326. eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
  327.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
  328.     ${GENSCRIPTS} h8300h
  329. eh8500.c: $(srcdir)/emulparams/h8500.sh \
  330.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
  331.     ${GENSCRIPTS} h8500
  332. eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
  333.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
  334.     ${GENSCRIPTS} h8500b
  335. eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
  336.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
  337.     ${GENSCRIPTS} h8500c
  338. eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
  339.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
  340.     ${GENSCRIPTS} h8500m
  341. eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
  342.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
  343.     ${GENSCRIPTS} h8500s
  344. esh.c: $(srcdir)/emulparams/sh.sh \
  345.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
  346.     ${GENSCRIPTS} sh
  347. est2000.c: $(srcdir)/emulparams/st2000.sh \
  348.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
  349.     ${GENSCRIPTS} st2000
  350. ez8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
  351.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
  352.     ${GENSCRIPTS} z8ksim
  353. evanilla.c: $(srcdir)/emulparams/vanilla.sh \
  354.   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
  355.     ${GENSCRIPTS} vanilla
  356. elnk960.c: $(srcdir)/emulparams/lnk960.sh \
  357.   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  358.     ${GENSCRIPTS} lnk960
  359. egld960.c: $(srcdir)/emulparams/gld960.sh \
  360.   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  361.     ${GENSCRIPTS} gld960
  362. egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
  363.   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  364.     ${GENSCRIPTS} gld960coff
  365. em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
  366.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
  367.     ${GENSCRIPTS} m68kcoff
  368. em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
  369.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
  370.     ${GENSCRIPTS} m68klynx
  371. ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
  372.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
  373.     ${GENSCRIPTS} i386coff
  374. ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
  375.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
  376.     ${GENSCRIPTS} i386lynx
  377. emipslit.c:  $(srcdir)/emulparams/mipslit.sh \
  378.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  379.     ${GENSCRIPTS} mipslit
  380. ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
  381.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  382.     ${GENSCRIPTS} i386bsd
  383. emipsbig.c:  $(srcdir)/emulparams/mipsbig.sh \
  384.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  385.     ${GENSCRIPTS} mipsbig
  386. emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
  387.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
  388.     ${GENSCRIPTS} mipsbsd
  389. emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
  390.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  391.     ${GENSCRIPTS} mipsidt
  392. emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
  393.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
  394.     ${GENSCRIPTS} mipsidtl
  395. eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
  396.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  397.     ${GENSCRIPTS} elf_i386
  398. eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
  399.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  400.     ${GENSCRIPTS} elf32bmip
  401. eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
  402.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  403.     ${GENSCRIPTS} elf32lmip
  404. ealpha.c: $(srcdir)/emulparams/alpha.sh \
  405.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
  406.     ${GENSCRIPTS} alpha
  407. ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
  408.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
  409.     ${GENSCRIPTS} coff_sparc
  410. esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
  411.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
  412.     ${GENSCRIPTS} sparclynx
  413. eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
  414.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  415.     ${GENSCRIPTS} elf32ppc
  416. eriscix.c: $(srcdir)/emulparams/riscix.sh \
  417.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  418.     ${GENSCRIPTS} riscix
  419. em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
  420.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  421.     ${GENSCRIPTS} m68kaout
  422. ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
  423.   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  424.     ${GENSCRIPTS} i386linux
  425. eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
  426.   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  427.     ${GENSCRIPTS} elf32_sparc
  428. eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
  429.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  430.     ${GENSCRIPTS} elf64_sparc
  431.  
  432. epc532machaout.c: $(srcdir)/emulparams/pc532machaout.sh \
  433.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  434.     ${GENSCRIPTS} pc532machaout
  435.  
  436. enetbsd532.c: $(srcdir)/emulparams/netbsd532.sh \
  437.   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
  438.     ${GENSCRIPTS} netbsd532
  439.  
  440. $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
  441.     $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
  442.  
  443. # The generated emulation files mostly have the same dependencies.
  444. $(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
  445.   ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \
  446.   ldctor.h ldexp.h ldlang.h
  447.  
  448. # These targets are for the dejagnu testsuites. The file site.exp 
  449. # contains global variables that all the testsuites will use.
  450.  
  451. site.exp: ./config.status Makefile
  452.     @echo "Making a new config file..."
  453.     @rm -f ./tmp?
  454.     @touch site.exp
  455.     @mv site.exp site.bak
  456.     @echo "## variables are automatically generated by make ##" > ./tmp0
  457.     @echo "# Do not edit here. If you wish to override these" >> ./tmp0
  458.     @echo "# values, add them to the last section" >> ./tmp0
  459.     @echo "# HOST AND TARGET INFO" >> ./tmp0
  460.     @echo "set host_os $(host_os)" >> ./tmp0
  461.     @echo "set host_alias $(host_alias)" >> ./tmp0
  462.     @echo "set host_cpu $(host_cpu)" >> ./tmp0
  463.     @echo "set host_vendor $(host_vendor)" >> ./tmp0
  464.     @echo "set target_os $(target_os)" >> ./tmp0
  465.     @echo "set target_alias $(target_alias)" >> ./tmp0
  466.     @echo "set target_cpu $(target_cpu)" >> ./tmp0
  467.     @echo "set target_vendor $(target_vendor)" >> ./tmp0
  468.     @echo "set host_triplet $(host_canonical)" >> ./tmp0
  469.     @echo "set target_triplet $(target_canonical)" >> ./tmp0
  470.     @echo "# DIRECTORY INFO" >> ./tmp0
  471.     @echo "set objdir `pwd`" >> ./tmp0
  472.     @echo "" >> ./tmp0    
  473.     @echo "# LD DEPENDENCIES" >> ./tmp0    
  474.     @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
  475.     @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
  476.     @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
  477.     @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
  478.     @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
  479.     @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
  480.     @echo "" >> ./tmp0    
  481.     @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
  482.     @cat ./tmp0 > site.exp
  483.     @cat site.bak | sed \
  484.             -e '1,/^## Variables generated by.*##/ d' >> site.exp
  485.     -@rm -f ./tmp?
  486.  
  487. check: site.exp
  488.     r=`pwd`; export r; \
  489.     srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
  490.     EXPECT=${EXPECT} ; export EXPECT ; \
  491.     if [ -f $$r/../expect/expect ] ; then  \
  492.        TCL_LIBRARY=$${srcroot}/../tcl/library ; \
  493.        export TCL_LIBRARY ; \
  494.     else true ; fi ; \
  495.     $(RUNTEST) --tool ld --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
  496.       CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
  497.       CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)"
  498.  
  499. installcheck:
  500. .PHONY: check installcheck
  501.  
  502. # Rules for testing by relinking ld itself.
  503. # A similar test is in the testsuite.  This target is for ease of use
  504. # when porting ld.
  505.  
  506. ld-partial.o: ld.new
  507.     ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
  508. ld1: ld-partial.o
  509.     ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  510.  
  511. ld1-full: ld.new
  512.     ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  513.  
  514. ld2: ld1
  515.     ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  516.  
  517. ld3: ld2
  518.     ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
  519.  
  520. bootstrap: ld3
  521.     cmp ld2 ld3
  522.  
  523. .PHONY: bootstrap
  524.  
  525. # A test program for C++ constructors and destructors.
  526. # This test is now in the testsuite.
  527. #
  528. #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
  529. #    ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
  530. #      cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
  531. #
  532. #cdtest.out: cdtest
  533. #    ./cdtest > cdtest.tmp
  534. #    mv cdtest.tmp cdtest.out
  535. #
  536. #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
  537. #    ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
  538. #      cdtest-bar.o cdtest-foo.o
  539. #
  540. #cdtest-ur: cdtest-ur.o
  541. #    ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
  542. #      $(HOSTING_LIBS)
  543. #
  544. #cdtest-ur.out: cdtest-ur
  545. #    ./cdtest-ur > cdtest-ur.tmp
  546. #    mv cdtest-ur.tmp cdtest-ur.out
  547. #
  548. #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
  549. #    diff $(srcdir)/cdtest.exp cdtest.out
  550. #    diff $(srcdir)/cdtest.exp cdtest-ur.out
  551. #
  552. #.PHONY: check-cdtest
  553.  
  554. # END OF CHECK TARGETS
  555.  
  556. # DOCUMENTATION TARGETS
  557. # Manual configuration file; not usually attached to normal configuration,
  558. # because almost all configs use "gen" version of manual.
  559. #  Set DOCVER above to change.
  560. configdoc.texi:    ${DOCVER}-doc.texi
  561.     ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
  562.     ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
  563.     cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
  564.  
  565. # TeX output
  566. dvi: ld.dvi
  567. ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
  568.     TEXINPUTS=$(BFDDIR)/doc:$$TEXINPUTS $(TEXI2DVI) $(srcdir)/ld.texinfo
  569.  
  570. ldint.dvi: $(srcdir)/ldint.texinfo
  571.     $(TEXI2DVI) $(srcdir)/ldint.texinfo
  572.  
  573. # info file for online browsing
  574. ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
  575.     $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
  576.  
  577. ldint.info: $(srcdir)/ldint.texinfo
  578.     $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
  579.  
  580. .PHONY: dvi
  581.  
  582. #separate targets for "ms", "me", and "mm" forms of roff doc
  583. # Try to use a recent texi2roff.  v2 was put on prep in jan91.
  584. # If you want an index, see texi2roff doc for postprocessing 
  585. # and add -i to texi2roff invocations below.
  586. # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
  587. #    correspondint -e lines when later texi2roff's are current)
  588. # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
  589. # + @c's deleted explicitly because texi2roff sees texinfo commands in them
  590. # + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
  591. # + @alphaenumerate is ridiculously new, turned into @enumerate
  592.  
  593. ld.ms: $(srcdir)/ld.texinfo
  594.     sed -e '/\\input texinfo/d' \
  595.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  596.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  597.         -e '/^@c/d' \
  598.         -e 's/{.*,,/{/' \
  599.         -e 's/@ / /g' \
  600.         -e 's/^@alphaenumerate/@enumerate/g' \
  601.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  602.         $(srcdir)/ld.texinfo | \
  603.     $(TEXI2ROFF) $(TEXI2OPT) -ms | \
  604.     sed -e 's/---/\\(em/g' \
  605.         >>ld.ms 
  606.  
  607. # index for roff output
  608. ld-index.ms: ld.ms
  609.     $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
  610.         sed -e '/: warning:/d' | \
  611.         texi2index >ld-index.ms
  612.  
  613. # roff output (-mm)
  614. ld.mm: $(srcdir)/ld.texinfo
  615.     sed -e '/\\input texinfo/d' \
  616.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  617.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  618.         -e '/^@c/d' \
  619.         -e 's/{.*,,/{/' \
  620.         -e '/@noindent/d' \
  621.         -e 's/@ / /g' \
  622.         -e 's/^@alphaenumerate/@enumerate/g' \
  623.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  624.         $(srcdir)/ld.texinfo | \
  625.     $(TEXI2ROFF) $(TEXI2OPT) -mm | \
  626.     sed -e 's/---/\\(em/g' \
  627.     >ld.mm 
  628.  
  629. # index for roff output
  630. ld-index.mm: ld.mm
  631.     $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
  632.         sed -e '/: warning:/d' | \
  633.         texi2index >ld-index.mm
  634.  
  635. # roff output (-me)
  636. ld.me: $(srcdir)/ld.texinfo
  637.     sed -e '/\\input texinfo/d' \
  638.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  639.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  640.         -e '/^@c/d' \
  641.         -e 's/{.*,,/{/' \
  642.         -e 's/@ / /g' \
  643.         -e 's/^@alphaenumerate/@enumerate/g' \
  644.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  645.         $(srcdir)/ld.texinfo | \
  646.     $(TEXI2ROFF) $(TEXI2OPT) -me | \
  647.     sed -e 's/---/\\(em/g' \
  648.         >>ld.me 
  649.  
  650. # index for roff output
  651. ld-index.me: ld.me
  652.     $(ROFF) -me ld.me 2>&1 1>/dev/null | \
  653.         sed -e '/: warning:/d' | \
  654.         texi2index >ld-index.me
  655.  
  656. stage1:    force
  657.     -mkdir stage1
  658.     -mv -f $(STAGESTUFF) $(LD_PROG) stage1
  659.     -(cd stage1 ; ln -s $(LD_PROG) ld)
  660.  
  661. stage2:    force
  662.     -mkdir stage2
  663.     -mv -f $(STAGESTUFF) $(LD_PROG) stage2
  664.     -(cd stage2 ; ln -s $(LD_PROG) ld)
  665.  
  666. stage3:    force
  667.     -mkdir stage3
  668.     -mv -f $(STAGESTUFF) $(LD_PROG) stage3
  669.     -(cd stage3 ; ln -s $(LD_PROG) ld)
  670.  
  671. against = stage2
  672.  
  673. comparison: force
  674.     for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
  675.  
  676. de-stage1: force
  677.     -(cd stage1 ; mv -f * ..)
  678.     -rm ld
  679.     -rmdir stage1
  680.  
  681. de-stage2: force
  682.     -(cd stage2 ; mv -f * ..)
  683.     -rm ld
  684.     -rmdir stage2
  685.  
  686. de-stage3: force
  687.     -(cd stage3 ; mv -f * ..)
  688.     -rm ld
  689.     -rmdir stage3
  690.  
  691. .PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
  692.  
  693. # Stuff that should be included in a distribution:
  694. LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
  695. diststuff: $(LDDISTSTUFF)
  696.  
  697. mostlyclean:
  698.     -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
  699.     -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out cdtest.tmp
  700.     -rm -f cdtest-ur cdtest-ur.out cdtest-ur.tmp
  701.     -rm -f $(GENERATED_CFILES) $(GENERATED_HFILES)
  702.     -rm -fr tmpdir
  703. clean: mostlyclean
  704.     -rm -f $(LD_PROG) configdoc.texi
  705. distclean:
  706.     -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp site.bak \
  707.         $(STAGESTUFF) ld.?? ld.??s ld.toc ld.aux ld.log ldlex.[qp] \
  708.         $(LD_PROG) ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out \
  709.         configdoc.texi tmpdir
  710. realclean: clean distclean
  711.     -rm -f $(LDDISTSTUFF)
  712.  
  713. .PHONY: diststuff mostlyclean clean distclean realclean
  714.  
  715. lintlog:$(LINTSOURCES) Makefile
  716.     $(LINT) -abhxzn  $(LINTFLAGS)  $(LINTSOURCES) \
  717. | grep -v "pointer casts may be troublesome" \
  718. | grep -v "possible pointer alignment problem" \
  719. | grep -v "ignore" \
  720. | grep -v "conversion from long may lose accuracy" \
  721. | grep -v "warning: constant argument to NOT" \
  722. | grep -v "enumeration type clash, operator CAST" \
  723. | grep -v "warning: constant in conditional context"\
  724. | grep -v "archive\.c"
  725.  
  726.  
  727. TAGS:
  728.     etags -t $(srcdir)/*.[chly] *.[chly]
  729.  
  730.  
  731. install: 
  732.     $(INSTALL_XFORM) ld.new $(bindir)/ld
  733.     $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
  734.     for f in ldscripts/*; do \
  735.       $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
  736.     done
  737.     -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
  738.       rm -f $(tooldir)/bin/ld; \
  739.       ln $(bindir)/$$n $(tooldir)/bin/ld >/dev/null 2>/dev/null \
  740.        || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
  741.  
  742. install-info: ld.info
  743.     if [ -r ld.info ]; then \
  744.       dir=. ; \
  745.     else \
  746.       dir=$(srcdir) ; \
  747.     fi ; \
  748.     for i in `cd $$dir ; echo ld.info*` ; do \
  749.         $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
  750.     done
  751.  
  752. clean-info:
  753.     -rm -rf *.info*
  754.  
  755. .PHONY: install install-info clean-info
  756.  
  757. # Targets to rebuild dependencies in this Makefile.
  758. # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
  759. .dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES)
  760.     rm -f .dep1
  761.     $(MAKE) DEP=$(DEP) .dep1
  762.     sed -f dep.sed <.dep1 >.dep
  763.  
  764. # This rule really wants a mkdep that runs "gcc -MM".
  765. .dep1: $(CFILES) $(GENERATED_CFILES)
  766.     rm -f .dep2
  767.     echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
  768.     $(DEP) -f .dep2 $(ALL_CFLAGS) $?
  769.     $(srcdir)/../move-if-change .dep2 .dep1
  770.  
  771. dep.sed: dep-in.sed config.status
  772.     sed <$(srcdir)/dep-in.sed >dep.sed    \
  773.         -e 's!@INCDIR@!$(INCDIR)!'    \
  774.         -e 's!@srcdir@!$(srcdir)!'
  775.  
  776. dep: .dep
  777.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
  778.     cat .dep >> tmp-Makefile
  779.     $(srcdir)/../move-if-change tmp-Makefile Makefile
  780.  
  781. dep-in: .dep
  782.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
  783.     cat .dep >> tmp-Makefile.in
  784.     $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
  785.  
  786. .PHONY: dep dep-in
  787.  
  788. # Dummy target to force execution of dependent targets.
  789. #
  790. force:
  791.  
  792. .PHONY: force
  793.  
  794. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  795.     $(SHELL) ./config.status
  796.  
  797. # What appears below is generated by a hacked mkdep using gcc -MM.
  798.  
  799. # DO NOT DELETE THIS LINE -- mkdep uses it.
  800. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  801.  
  802. ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  803.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  804.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
  805.   ldgram.h ldmain.h ldctor.h
  806. ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  807.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  808.   config.h ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h \
  809.   ldmain.h ldemul-list.h
  810. ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  811.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  812.   $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
  813.   ldgram.h ldlang.h
  814. ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  815.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  816.   ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
  817.   ldlex.h ldemul.h
  818. ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  819.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  820.   $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
  821.   ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
  822.   ldctor.h ldfile.h
  823. ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  824.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  825.   $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h config.h \
  826.   ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
  827.   ldemul.h ldlex.h ldfile.h ldctor.h
  828. ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  829.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  830.   ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
  831.   ldfile.h
  832. ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  833.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  834.   ld.h ldver.h ldemul.h ldmain.h
  835. ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  836.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  837.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
  838.   ldmisc.h ldgram.h ldmain.h
  839. lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  840.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  841.   $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h ld.h \
  842.   ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
  843.   ldfile.h ldver.h
  844. mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
  845.   ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
  846.   ldlang.h ldmisc.h mri.h ldgram.h
  847. ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
  848.   $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
  849.   $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
  850.   ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
  851. ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h ../bfd/sysdep.h \
  852.   $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h ldexp.h \
  853.   ldlang.h ldfile.h ldlex.h ldmain.h
  854.  
  855. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  856.